import * as api from "aa";
import { fnp, fnq } from "./c.js";
import coursewareApi from "@rc/apis/rc/courseware.mjs";

export default {		
    methods: {
		getAge() {
			console.log(111);
		},
        getName() {
            Http.callService({
				url: "cbn/knowledge/client/list",
				data: {
					pageIndex: 1,
					pageSize: 10,
				}
			})
			.success((result) => {
				let formData = new FormData();
			})
			.fail(function(data, msg) {
				MsgBox.alert(msg);
			})
			.complete(() => {
				this.isLoading = false;
			});
        },
		getName1() {
            Http.callService({
				url: "cbn/knowledge/client/list",
				data: {
					pageIndex: 1,
					pageSize: 10,
				}
			});
			fnp();
        },
		getName2() {
			const params = {
				url: "cbn/knowledge/client/list",
			};
            Http.callService(params);
			fnq();
        },
		getName3() {
            return Http.callService();
        },		
		getName4() {
            return Http.callService().success(({ data = [], count = 0}) => {
				this.list = data;
				this.count = count;
			});
        },
		getName5() {
            Http.callService({
				url: "cbn/knowledge/client/list",
				data: {
					pageIndex: 1,
					pageSize: 10,
				}
			})
			.success(() => {
				const params = {
					url: "cbn/knowledge/client/list",
				};
				Http.callService(params);
			});
        },
		queryQuestionDetailInfo(opt = {}) {
			Http.callService({
				url: "rc/admin/resourcequestion/detail/info",
				data: opt.data || {}
			})
				.success((data) => {
					opt.success && opt.success(data);
				})
				.complete((data) => {
					opt.complete && opt.complete(data);
				});
		},
		queryOperationLogs(opt = {}) {
			Http.callService({
				url: "rc/admin/operationlogs",
				data: opt.data || {}
			})
				.success((data) => {
					opt.success && opt.success(data);
				})
				.complete((data) => {
					opt.complete && opt.complete(data);
				});
		},
    }			              
}

export function fns () {

}

export const names = '123';
